Methods

Name Returns Notes Example
type ( type ) WebsocketMappingBuilder Sets the data type for this socket host
onConnected ( function ) WebsocketMappingBuilder The method to call when a new socket connection gets made
onDisconnected ( function ) WebsocketMappingBuilder The method to call when a socket disconnects
onMessage ( function ) WebsocketMappingBuilder The method to call when a socket sends a message to the server
adminOnly ( adminOnly ) WebsocketMappingBuilder Sets whether this connection is available to admin domains only
build ( ) RepoAppWebsocketMapping Builds and prepares this socket host

Ask a question, or offer an answer